<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title></title>
    <link rel="stylesheet" href="../css/bootstrap.min.css">
    <script src="../js/angular.min.js"></script>
</head>
<body>
<button class="btn btn-success" ng-click="editUser('new')">
    <span class="glyphicon glyphicon-user"></span>Create New User
</button>
<hr>

<h3 ng-show="edit">Create New User</h3>
<h3 ng-hide="edit">Edit User</h3>

<form class="form-horizontal">
    <div class="form-group">
        <label class="col-sm-2 control-label">username:</label>
        <div class="col-sm-10">
            <input type="text" ng-model="username" ng-disabled="!edit" placeholder="username">
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">address:</label>
        <div class="col-sm-10">
            <input type="text" ng-model="address" ng-disabled="!edit" placeholder="address">
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">password:</label>
        <div class="col-sm-10">
            <input type="text" ng-model="password" placeholder="password">
        </div>
    </div>

    <div class="form-group">
        <label class="col-sm-2 control-label">repassword:</label>
        <div class="col-sm-10">
            <input type="text" ng-model="repassword" placeholder="repassword">
        </div>
    </div>
</form>

<hr>
<button type="button" class="btn btn-success" ng-disabled="error || incomplete">
    <span class="glyphicon glyphicon-save"></span>Save Changes
</button>
</body>
</html>